package stud.mpgame.flash.net.description;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.flash.net.userobject.MapInfoUserObject;

/**
 * ...
 * @author pavel[f.pavel91@gmail.com]
 */

class MapInfoMessageDescription extends MessageDescription {
	
	private static var ID:Int = IDescriptionManager.MAP_INFO_MESSAGE_DESCRIPTION;
	
	private static var MAP_INFO_USER_OBJECT_ID:Int = 1;
	
    private static var instance:MapInfoMessageDescription = null;

    public override function getID():Int {
        return ID;
    }
    
	public function new() {
		super();
        this.registerUserObject(MAP_INFO_USER_OBJECT_ID, MapInfoUserObject);
	}
    
	public static function getInstance():MapInfoMessageDescription {
        if(instance == null){
            instance = new MapInfoMessageDescription();
        }
        return instance;
    }
	
}